Integrand size = 20, antiderivative size = 191 \[ \int \frac {(e+f x)^n}{a+b x+c x^2} \, dx=-\frac {2 c (e+f x)^{1+n} \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {2 c (e+f x)}{2 c e-\left (b-\sqrt {b^2-4 a c}\right ) f}\right )}{\sqrt {b^2-4 a c} \left (2 c e-\left (b-\sqrt {b^2-4 a c}\right ) f\right ) (1+n)}+\frac {2 c (e+f x)^{1+n} \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {2 c (e+f x)}{2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f}\right )}{\sqrt {b^2-4 a c} \left (2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f\right ) (1+n)} \]
[Out]
Time = 0.19 (sec) , antiderivative size = 191, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {725, 70} \[ \int \frac {(e+f x)^n}{a+b x+c x^2} \, dx=\frac {2 c (e+f x)^{n+1} \operatorname {Hypergeometric2F1}\left (1,n+1,n+2,\frac {2 c (e+f x)}{2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f}\right )}{(n+1) \sqrt {b^2-4 a c} \left (2 c e-f \left (\sqrt {b^2-4 a c}+b\right )\right )}-\frac {2 c (e+f x)^{n+1} \operatorname {Hypergeometric2F1}\left (1,n+1,n+2,\frac {2 c (e+f x)}{2 c e-\left (b-\sqrt {b^2-4 a c}\right ) f}\right )}{(n+1) \sqrt {b^2-4 a c} \left (2 c e-f \left (b-\sqrt {b^2-4 a c}\right )\right )} \]
[In]
[Out]
Rule 70
Rule 725
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {2 c (e+f x)^n}{\sqrt {b^2-4 a c} \left (b-\sqrt {b^2-4 a c}+2 c x\right )}-\frac {2 c (e+f x)^n}{\sqrt {b^2-4 a c} \left (b+\sqrt {b^2-4 a c}+2 c x\right )}\right ) \, dx \\ & = \frac {(2 c) \int \frac {(e+f x)^n}{b-\sqrt {b^2-4 a c}+2 c x} \, dx}{\sqrt {b^2-4 a c}}-\frac {(2 c) \int \frac {(e+f x)^n}{b+\sqrt {b^2-4 a c}+2 c x} \, dx}{\sqrt {b^2-4 a c}} \\ & = -\frac {2 c (e+f x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {2 c (e+f x)}{2 c e-\left (b-\sqrt {b^2-4 a c}\right ) f}\right )}{\sqrt {b^2-4 a c} \left (2 c e-\left (b-\sqrt {b^2-4 a c}\right ) f\right ) (1+n)}+\frac {2 c (e+f x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {2 c (e+f x)}{2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f}\right )}{\sqrt {b^2-4 a c} \left (2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f\right ) (1+n)} \\ \end{align*}
Time = 0.18 (sec) , antiderivative size = 163, normalized size of antiderivative = 0.85 \[ \int \frac {(e+f x)^n}{a+b x+c x^2} \, dx=\frac {2 c (e+f x)^{1+n} \left (-\frac {\operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {2 c (e+f x)}{2 c e+\left (-b+\sqrt {b^2-4 a c}\right ) f}\right )}{2 c e+\left (-b+\sqrt {b^2-4 a c}\right ) f}+\frac {\operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {2 c (e+f x)}{2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f}\right )}{2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f}\right )}{\sqrt {b^2-4 a c} (1+n)} \]
[In]
[Out]
\[\int \frac {\left (f x +e \right )^{n}}{c \,x^{2}+b x +a}d x\]
[In]
[Out]
\[ \int \frac {(e+f x)^n}{a+b x+c x^2} \, dx=\int { \frac {{\left (f x + e\right )}^{n}}{c x^{2} + b x + a} \,d x } \]
[In]
[Out]
\[ \int \frac {(e+f x)^n}{a+b x+c x^2} \, dx=\int \frac {\left (e + f x\right )^{n}}{a + b x + c x^{2}}\, dx \]
[In]
[Out]
\[ \int \frac {(e+f x)^n}{a+b x+c x^2} \, dx=\int { \frac {{\left (f x + e\right )}^{n}}{c x^{2} + b x + a} \,d x } \]
[In]
[Out]
\[ \int \frac {(e+f x)^n}{a+b x+c x^2} \, dx=\int { \frac {{\left (f x + e\right )}^{n}}{c x^{2} + b x + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(e+f x)^n}{a+b x+c x^2} \, dx=\int \frac {{\left (e+f\,x\right )}^n}{c\,x^2+b\,x+a} \,d x \]
[In]
[Out]